function addEventListener(el, type, fn, selector){
    if(typeof el === "string"){
        el = document.querySelector(el);
 
    }

    if(!selector){
        el.addEventListener(type, fn);
    }else{
        el.addEventListener(type, function(e){
            let target =  e.target;
            if(target.matches(selector)){
                fn.call(target, e)
            }
        });
    }
    
}